<ol>
    <?php if ($widgets): ?>
    <?php foreach ($widgets as $widget): ?>
        <li id="instance-<?php echo $widget->id; ?>" class="widget-instance">
            <h4>
                <?php echo $widget->instance_title; ?>
                <span class="in-widget-title">
                    :&nbsp;<?php echo $widget->title; ?>
                </span>
            </h4>

            <div class="widget-actions">
                <?php
                echo anchor('/admin/widgets/instances/edit/' . $widget->id, image('icons/16/edit.png'), array('class'=>'edit'));
                    ?>
                <a href="javascript:void(0)" class="confirm delete">
                    <?php echo image('icons/16/delete.png');?>
                </a>
            </div>

            <div style="clear:both"></div>
        </li>
        <?php endforeach; ?>
    <?php endif; ?>
    <li class="empty-drop-item hidden no-sortable"></li>
</ol>